import { http } from "@/uni-sub-base/service/request.js"
let serviceName = "Postage/"
import { getBaseUrls } from "@/utils/appUrl.js"
//获取配送模板列表(分页)
export function GetPostageTemplatePageList(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetPostageTemplatePageList",
        data,
    })
}
//获取配送模板信息
export function GetPostageTemplateInfo(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetPostageTemplateInfo",
        data,
    })
}
//保存配送模板(新增/修改)
export function SavePostageTemplate(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "SavePostageTemplate",
        data,
    })
}
//删除配送模板
export function DeletePostageTemplate(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "DeletePostageTemplate",
        data,
    })
}
//获取运费模板使用信息
export function GetPostageTemplateUsedData(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetPostageTemplateUsedData",
        data,
    })
}

//获取配送地区列表(分页)
export function GetPostageAreaPageList(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetPostageAreaPageList",
        data,
    })
}
//获取配送地区信息
export function GetPostageAreaInfo(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetPostageAreaInfo",
        data,
    })
}
//保存配送地区(新增/修改)
export function SavePostageArea(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "SavePostageArea",
        data,
    })
}
//批量添加配送地区
export function BatchAddPostageArea(path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "BatchAddPostageArea" + path,
    })
}
//删除配送地区
export function DeletePostageArea(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "DeletePostageArea",
        data,
    })
}
//启用/禁用配送地区
export function EnablePostageArea(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "EnablePostageArea",
        data,
    })
}
